package com.hyts.mvc.config;

import com.hyts.guava.array.Arrays;
import com.hyts.mvc.servlet.WebMvcServlet;

import java.util.List;

/**
 * @project-name:coffice-toolbox
 * @package-name:com.hyts.mvc.config
 * @author:Libo/Alex
 * @create-date:2019-06-16 20:25
 * @copyright:libo-hyts-github
 * @email:libo2dev@aliyun.com
 * @see WebMvcServlet
 * @description:此类主要用于: servlet 控制器的相关配置属性
 */
public interface MvcValue {

    /**
     * servlet服务操作
     */
    String MVC_SERVLET_NAME = "webMvcServlet";

    /**
     * 扫描组件分隔符
     */
    String[] SCAN_COMPONENT_PACKAGE_SPLIT_TOKEN = {",",";"};

    /**
     * 默认的视图前缀,默认为/templates 借鉴springboot的template模板文件夹
     */
    String DEFAULT_VIEW_PREFIX_PATH = "templates";

    /**
     * 默认的视图前缀,默认为.html 借鉴springboot的.html模板文件夹
     */
    String DEFAULT_VIEW_SUBFIX_PATH = ".html";

    /**
     * 默认的视图url路径请求操作视图路径
     */
    String DEFAULT_VIEW_SERVLET_URL_PATH = "/";

    /**
     * 默认的filter操作url path路径
     */
    String DEFAULT_VIEW_FILTER_PATH = "/*";

    /**
     * 默认的webmvc的配置文件操作
     */
    String DEFAULT_CONFIG_FILE_NAME = "application.properties";


    StringBuilder DEFAULT_PACKAGE_NAME = new StringBuilder();

    String[] STATIC_SUBFIX_NAME = new String[]{"*.html","*.htm","*.js","*.css","*.png","*.jpg","*.jpeg"};

}




